
  <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
  	<blockquote class="layui-elem-quote">选择商品分类</blockquote>
    <div class="layui-form-item">
      <label class="layui-form-label">一级分类（单选）</label>
      <div class="layui-input-inline" style="width: 80%;">
      	<script type="text/html" template>
      		<input type="radio" name="category_pid" lay-filter="category-pid" value="1" {{ d.params.category_pid === 1 ? 'checked' : '' }} title="文学小说">
	      	<input type="radio" name="category_pid" lay-filter="category-pid" value="2" {{ d.params.category_pid === 2 ? 'checked' : '' }} title="经管商业">
	      	<input type="radio" name="category_pid" lay-filter="category-pid" value="3" {{ d.params.category_pid === 3 ? 'checked' : '' }} title="IT科技">
	      	<input type="radio" name="category_pid" lay-filter="category-pid" value="4" {{ d.params.category_pid === 4 ? 'checked' : '' }} title="自我提升">
	      	<input type="radio" name="category_pid" lay-filter="category-pid" value="5" {{ d.params.category_pid === 5 ? 'checked' : '' }} title="人文社科">
	      	<input type="radio" name="category_pid" lay-filter="category-pid" value="6" {{ d.params.category_pid === 6? 'checked' : '' }} title="儿童书籍">
	      	<input type="radio" name="category_pid" lay-filter="category-pid" value="7" {{ d.params.category_pid === 7 ? 'checked' : '' }} title="生活艺术">
        </script>
      </div>
    </div> 
    <div class="layui-form-item">
      <label class="layui-form-label">二级分类（可多选）</label>
      <div class="layui-input-block"  id="first-category-ids">
      </div>
    </div>    
    <blockquote class="layui-elem-quote">填写商品信息</blockquote>
    <div class="layui-form-item">
      <label class="layui-form-label">书名</label>
      <div class="layui-input-inline" style="width: 80%;">
        <script type="text/html" template>
          <input type="text" name="title" value="{{ d.params.title || '' }}" lay-verify="required" placeholder="请输入书名" autocomplete="off" class="layui-input">
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">作者</label>
      <div class="layui-input-inline" style="width: 80%;">
        <script type="text/html" template>
          <input type="text" name="author" value="{{ d.params.author || '' }}" lay-verify="required" placeholder="请输入作者" autocomplete="off" class="layui-input">
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">副标题</label>
      <div class="layui-input-inline" style="width: 80%;">
        <script type="text/html" template>
          <textarea name="sub_title" placeholder="请输入内容" class="layui-textarea">{{ d.params.sub_title || '' }}</textarea>
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">豆瓣评分</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <input type="text" name="score" value="{{ d.params.score || '' }}" placeholder="请输入豆瓣评分" autocomplete="off" class="layui-input">
          <input type="hidden" name="id" value="{{ d.params.id || '' }}" class="layui-input">
        </script>
      </div>
    </div>
    <!--<div class="layui-form-item">
      <label class="layui-form-label">评分人数</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <input type="text" name="score_num" value="{{ d.params.score_num || '' }}" placeholder="请输入评分人数" autocomplete="off" class="layui-input">
          <input type="hidden" name="id" value="{{ d.params.id || '' }}" class="layui-input">
        </script>
      </div>
    </div>-->
    <div class="layui-form-item">
      <label class="layui-form-label">封面图</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
	          <button type="button" class="layui-btn" id="add-goods-upload-btn">
	            <i class="layui-icon">&#xe67c;</i>上传图片
	          </button>
	          <div class="layui-upload-list">
	            <img class="layui-upload-img" src="{{ d.params.image || '' }}" id="add-goods-upload-img" style="width: 200px;">
	            <input type="hidden" name="image" value="{{ d.params.image || '' }}" id="add-goods-upload-image" required lay-verify="required" class="layui-input">
	          </div>
        </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">作者介绍</label>
      <div class="layui-input-inline" style="width: 80%;">
      	<script type="text/html" template>
         <div id="editor"></div>  
       </script>
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">是否是套装</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
            <input type="radio" name="is_sult" value="0" {{ d.params.is_sult === 0 ? 'checked' : '' }} title="非套装">
	      	<input type="radio" name="is_sult" value="1" {{ d.params.is_sult === 1 ? 'checked' : '' }} title="是套装">
        </script>
      </div>
    </div>
    <fieldset class="layui-elem-field layui-field-title">
    	<legend>出版信息</legend>
    	<div class="layui-field-box">
		    <div class="layui-form-item">
		      <label class="layui-form-label">出版社</label>
		      <div class="layui-input-inline">
		        <script type="text/html" template>
		          <input type="text" name="publish_house" value="{{ d.params.publish_house || '' }}" placeholder="请输入出版社" autocomplete="off" class="layui-input">
		        </script>
		      </div>
		    </div>    
		    <div class="layui-form-item">
		      <label class="layui-form-label">出版时间</label>
		      <div class="layui-input-inline">
		        <script type="text/html" template>
		          <input type="text" name="publish_time" value="{{ d.params.publish_time || '' }}" placeholder="请输入出版时间" autocomplete="off" class="layui-input">
		        </script>
		      </div>
		    </div> 
		    <div class="layui-form-item">
		      <label class="layui-form-label">版次</label>
		      <div class="layui-input-inline">
		        <script type="text/html" template>
		          <input type="text" name="publish_num" value="{{ d.params.publish_num || '' }}" placeholder="请输入出版版次" autocomplete="off" class="layui-input">
		        </script>
		      </div>
		    </div> 
		    <div class="layui-form-item">
		      <label class="layui-form-label">正文语种</label>
		      <div class="layui-input-inline">
		        <script type="text/html" template>
		          <input type="text" name="publish_translator" value="{{ d.params.publish_translator || '' }}" placeholder="请输入译者" autocomplete="off" class="layui-input">
		        </script>
		      </div>
		    </div> 
		    <div class="layui-form-item">
		      <label class="layui-form-label">包装</label>
		      <div class="layui-input-inline">
		        <script type="text/html" template>
		          <input type="text" name="publish_package" value="{{ d.params.publish_package || '' }}" placeholder="请输入包装" autocomplete="off" class="layui-input">
		        </script>
		      </div>
		    </div> 
		    <div class="layui-form-item">
		      <label class="layui-form-label">用纸</label>
		      <div class="layui-input-inline">
		        <script type="text/html" template>
		          <input type="text" name="publish_paper" value="{{ d.params.publish_paper || '' }}" placeholder="请输入用纸" autocomplete="off" class="layui-input">
		        </script>
		      </div>
		    </div> 
		    <div class="layui-form-item">
		      <label class="layui-form-label">页数</label>
		      <div class="layui-input-inline">
		        <script type="text/html" template>
		          <input type="text" name="publish_pages" value="{{ d.params.publish_pages || '' }}" placeholder="请输入页数" autocomplete="off" class="layui-input">
		        </script>
		      </div>
		    </div> 
		    <div class="layui-form-item">
		      <label class="layui-form-label">开本</label>
		      <div class="layui-input-inline">
		        <script type="text/html" template>
		          <input type="text" name="publish_open" value="{{ d.params.publish_open || '' }}" placeholder="请输入开本" autocomplete="off" class="layui-input">
		        </script>
		      </div>
		    </div> 
		    <div class="layui-form-item">
		      <label class="layui-form-label">ISBN</label>
		      <div class="layui-input-inline" style="width: 70%;">
		        <script type="text/html" template>
		             <input style="width: 200px;float: left;margin-right: 20px;" name="isbn" value="{{ d.params.isbn || '' }}" id="isbn" placeholder="" autocomplete="off" class="layui-input">
                    <button style="float: left;margin-right: 20px;" class="layui-btn layuiadmin-btn-useradmin" id="detection">检测这个ISBN是否有重复</button>
                    <span style="float: left;margin-top: 10px;" id="msg_info"></span>
		        </script>
		      </div>
		    </div> 
		    <div class="layui-form-item">
		      <label class="layui-form-label">简介</label>
		      <div class="layui-input-inline" style="width: 80%;">
		      	<script type="text/html" template>
		          <div id="editor1"></div>  
		       </script>
		      </div>
		    </div>
		    <div class="layui-form-item">
		      <label class="layui-form-label">目录</label>
		      <div class="layui-input-inline" style="width: 80%;">
		      	<script type="text/html" template>
		          <div id="editor2"></div>  
		       </script>
		      </div>
		    </div>
    	</div>	
    </fieldset>
    <blockquote class="layui-elem-quote">价格库存</blockquote>
    <button style="float: right;margin-right: 20px;" class="layui-btn layuiadmin-btn-useradmin" id="allPrice">计算价格</button>
    <div class="layui-form-item">
      <label class="layui-form-label">图书原价(划线价)</label>
      <div class="layui-input-inline">
        <script type="text/html" template>
          <input type="text" name="old_price" id="old_price" value="{{ d.params.old_price || '' }}" placeholder="请输入图书原价" autocomplete="off" class="layui-input">
        </script>
      </div>
    </div>     
    <fieldset class="layui-elem-field layui-field-title">
        <div class="conter">
            <dl class="bookstype">
                <dt>图书品相</dt>
                <dd>全新书</dd>
                <dd>品相良好</dd>
                <dd><span style="color: #ccc">品相中等：</span>轻度污渍或磨损</dd>
                <dd><span style="color: #ccc">品相中等：</span>轻度破损或磨损</dd>
                <dd><span style="color: #ccc">品相中等：</span>轻度变形或折痕</dd>
                <dd><span style="color: #ccc">品相中等：</span>可拆外封套缺失</dd>
                <dd><span style="color: #ccc">品相中等：</span>少量划线或标注</dd>
                <dd><span style="color: #ccc">品相中等：</span>轻度泛黄或褪色</dd>
              </dl>
              <dl class="bookstype">
                <dt>售卖价格</dt>
                <dd><span class="sp5">￥</span><input type="text" value="0" name="new_book_price" id="new_book_price"><span class="sp6"><span id="new_book_discount">0</span>折</span></dd>
                <dd><span class="sp5">￥</span><input type="text" value="0" name="good_book_price" id="good_book_price"><span class="sp6"><span id="good_book_discount">0</span>折</span></dd>
                <dd><span class="sp5">￥</span><input type="text" value="0" name="medium_book_price" id="medium_book_price"><span class="sp6"><span id="medium_book_discount">0</span>折</span></dd>
                <dd><span class="sp5">￥</span><input type="text" value="0" name="medium_book_price2" id="medium_book_price2"><span class="sp6"><span id="medium_book_discount2">0</span>折</span></dd>
                <dd><span class="sp5">￥</span><input type="text" value="0" name="medium_book_price3" id="medium_book_price3"><span class="sp6"><span id="medium_book_discount3">0</span>折</span></dd>
                <dd><span class="sp5">￥</span><input type="text" value="0" name="medium_book_price4" id="medium_book_price4"><span class="sp6"><span id="medium_book_discount4">0</span>折</span></dd>
                <dd><span class="sp5">￥</span><input type="text" value="0" name="medium_book_price5" id="medium_book_price5"><span class="sp6"><span id="medium_book_discount5">0</span>折</span></dd>
                <dd><span class="sp5">￥</span><input type="text" value="0" name="medium_book_price6" id="medium_book_price6"><span class="sp6"><span id="medium_book_discount6">0</span>折</span></dd>
              </dl>
              <dl class="bookstype">
                <dt>库存</dt>
                <dd><input type="text" value="0" name="new_book_stock" id="new_book_stock"></dd>
                <dd><input type="text" value="0" name="good_book_stock" id="good_book_stock"></dd>
                <dd><input type="text" value="0" name="medium_book_stock" id="medium_book_stock"></dd>
                <dd><input type="text" value="0" name="medium_book_stock2" id="medium_book_stock2"></dd>
                <dd><input type="text" value="0" name="medium_book_stock3" id="medium_book_stock3"></dd>
                <dd><input type="text" value="0" name="medium_book_stock4" id="medium_book_stock4"></dd>
                <dd><input type="text" value="0" name="medium_book_stock5" id="medium_book_stock5"></dd>
                <dd><input type="text" value="0" name="medium_book_stock6" id="medium_book_stock6"></dd>
              </dl>
          </div>
        <!-- <legend>全新书</legend>
        <div class="layui-field-box">
            <div class="layui-form-item">
                <label class="layui-form-label">价格</label>
                <div class="layui-input-inline">
	                <span class="sp3">￥</span>	
	                <script type="text/html" template>
			          <input type="text" name="new_book_price" id="new_book_price" value="{{ d.params.new_book_price || '' }}" placeholder="请输入开本" autocomplete="off" class="layui-input int1">
			        </script>
                </div>
                <div class="layui-form-mid layui-word-aux"><span class="discount" id="new_book_price_discount"></span>折</div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">库存</label>
                <div class="layui-input-inline">
                <script type="text/html" template>
				    <input type="text" name="new_book_stock" value="{{ d.params.new_book_stock || '0' }}" placeholder="请输入内容"  class="layui-input">
				</script>
                </div>
                <div class="layui-form-mid layui-word-aux"></div>
            </div>
        </div> -->
    </fieldset>
    <!-- <fieldset class="layui-elem-field layui-field-title">
        <legend>品相良好</legend>
        <div class="layui-field-box">
            <div class="layui-form-item">
                <label class="layui-form-label">价格</label>
                <div class="layui-input-inline">
                	<span class="sp3">￥</span>	
	                <script type="text/html" template>
				        <input type="text" name="good_book_price" id="good_book_price" value="{{ d.params.good_book_price || '' }}" placeholder="请输入内容" autocomplete="off" class="layui-input int1">
				    </script>
                </div>
                <div class="layui-form-mid layui-word-aux"><span class="discount" id="good_book_price_discount"></span>折</div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">库存</label>
                <div class="layui-input-inline">
                <script type="text/html" template>
				    <input type="text" name="good_book_stock" value="{{ d.params.good_book_stock || '0' }}" placeholder="请输入内容"  class="layui-input">
				</script>
                </div>
                <div class="layui-form-mid layui-word-aux"></div>
            </div>
        </div>
    </fieldset>
    <fieldset class="layui-elem-field layui-field-title">
        <legend>品相中等</legend>
        <div class="layui-field-box">
            <div class="layui-form-item">
                <label class="layui-form-label">价格</label>
                <div class="layui-input-inline">
                	<span class="sp3">￥</span>	
                <script type="text/html" template>
								    <input type="text" name="medium_book_price" id="medium_book_price" value="{{ d.params.medium_book_price || '' }}" placeholder="请输入内容"  class="layui-input int1">
								</script>
                </div>
                <div class="layui-form-mid layui-word-aux"><span class="discount" id="medium_book_price_discount"></span>折</div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">库存</label>
                <div class="layui-input-inline">
                <script type="text/html" template>
								    <input type="text" name="medium_book_stock" value="{{ d.params.medium_book_stock || '0' }}" placeholder="请输入内容"  class="layui-input">
								</script>
                </div>
                <div class="layui-form-mid layui-word-aux"></div>
            </div>
        </div>
    </fieldset> -->
    <!-- 回收设置 -->
    <blockquote class="layui-elem-quote">回收设置</blockquote>
    <div class="layui-form-item">
      <label class="layui-form-label">是否支持回收</label>
      <div class="layui-input-block">
        <script type="text/html" template>
            <input type="radio" name="is_recycle" value="1" {{ d.params.is_recycle === 1 ? 'checked' : '' }} title="是">
	      	<input type="radio" name="is_recycle" value="2" {{ d.params.is_recycle === 2 ? 'checked' : '' }} title="否">
        </script>
      </div>    
    </div>  
    <div class="layui-form-item" id="is_recycle">
        <label class="layui-form-label">回收价格</label>
        <div class="layui-input-inline">
        	<span class="sp3">￥</span>	
	        <script type="text/html" template>
			    <input type="text" name="recyle_price" id="recyle_price" value="{{ d.params.recyle_price || '0' }}" placeholder="请输入内容"  class="layui-input int1">
			</script>
        </div>
        <div class="layui-form-mid layui-word-aux">原价的<span class="discount" id="recyle_price_discount"></span>折</div>
        <!-- <button style="float: left;margin-right: 20px;" class="layui-btn layuiadmin-btn-useradmin" id="allPrice">计算出卖价</button> -->
    </div>      
    <!-- 设置推荐位 -->
    <blockquote class="layui-elem-quote">设置推荐位</blockquote>
    <div class="layui-form-item">
      <label class="layui-form-label">把这本书推荐到（可多选）</label>
      <div class="layui-input-block" id="first-homepage-recommend-module-ids">
      </div>
    </div>  
    <div class="layui-form-item">
      <label class="layui-form-label"></label>
      <div class="layui-input-inline">
        <input type="button" lay-submit lay-filter="layuiadmin-app-form-submit" value="确认" class="layui-btn">
      </div>
    </div>
  </div>
<style type="text/css">
	.layui-form-label {text-align: center; width: 170px;}
	.int1{position: relative;padding-left: 30px;}
  .sp3{position: absolute;left: 10px;top: 10px;z-index: 10;color: #999;}
  .conter{width: 90%;overflow: auto;clear: both;margin: 0 auto}
	.bookstype{width: 33%;float: left;}
	.bookstype dt{width: 100%;height: 50px;background: #ccc;text-align: center;line-height: 50px;font-weight: bold;border: 1px solid #d8d8d8}
  .bookstype dd{width: 100%;height: 50px;text-align: center;line-height: 50px;border: 1px solid #d8d8d8}
  .bookstype dd input{text-align: center}
	.sp6{color:#999 !important}
</style>